package com.drinkian.business.good.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.drinkian.business.good.entity.po.Good;
import com.drinkian.business.good.entity.vo.VGoodGet;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodMapper extends BaseMapper<Good> {

    int addGoodBasic(Good good);
    void addGoodImage(Long goodId, String imageUrl);
    IPage<VGoodGet> getGoodList(IPage<VGoodGet> vGoodGetIPage);
    List<String> getGoodImageList(Long goodId);
    List<VGoodGet> searchGood(String name);
}
